﻿//Include("Mz");
//Include("Mz.String");

/**
 * @fileoverview 去除字符串前后端的空格
 * @author meizz
 * @version 20090426
 *
 * @name Mz.trim
 * @namespace Mz.trim
 * @param {String} str 需要去除前后端空格的字符串
 * @return {String} 已经处理过的字符串
 */
Mz.String.trim = function(str) {
    return str.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+$)/g, "");
};